package
{
	import flash.display.Sprite;

	public class Node extends Sprite
	{
		
		private var _f:Number;
		private var _g:Number;
		private var _h:Number;
		private var _parentNode:Node;
		
		private var _cote:Number;
		
		public function Node(_cote:Number)
		{
			this._cote= _cote;
		}
		
		public function highlight(color:uint):void
		{
			this.graphics.lineStyle(1);
			this.graphics.beginFill(color);
			this.graphics.drawRect( 0, 0, _cote, _cote);
			this.graphics.endFill();
		}
		
		public function get f():Number
		{
			return _f;
		}
		
		public function get g():Number
		{
			return _g;
		}
		
		public function get h():Number
		{
			return _h;
		}
		
		public function get parentNode():Node
		{
			return _parentNode;
		}
		
		public function set f(value:Number):void
		{
			_f = value;
		}
		
		public function set g(value:Number):void
		{
			_g = value;
		}
		
		public function set h(value:Number):void
		{
			_h = value;
		}
		
		public function set parentNode(value:Node):void
		{
			_parentNode = value;
		}
	}
}